<?php

use Illuminate\Database\Seeder;
use Illuminate\Support\Facades\DB;
use App\Models\Item;

class ItemTableSeeder extends Seeder
{

    /**
     * Run the database seeds.
     *
     * @return void
     */
    public function run()
    {
        DB::table('items')->delete();

        Item::create([
            'name' => '丢失平板电脑',
            'describe' => '5.19号下午3点丢失一台白色的平板电脑',
            'type' => 'lost',
            'user_id' => 1,
            'p_catalog_id' => 1,
            'catalog_id' => 2,
            'province_id' => 1,
            'city_id' => 2,
            'district_id' => 3,
            'place' => '出租车后座',
            'wanted_fee' => 100,
            'lost_time' => '2015-05-19 03:25:00',
            'find_time' => '0000-00-00 00:00:00'
        ]);
        Item::create([
            'name' => '捡到一台平板电脑',
            'describe' => '5.19号下午3点捡到一台白色的平板电脑',
            'type' => 'find',
            'user_id' => 2,
            'p_catalog_id' => 1,
            'catalog_id' => 2,
            'province_id' => 1,
            'city_id' => 2,
            'district_id' => 3,
            'place' => '出租车后座',
            'wanted_fee' => 200,
            'lost_time' => '0000-00-00 00:00:00',
            'find_time' => '2015-05-19 04:12:00'
        ]);
    }

}
